<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>等腰三角形</title>
	<script>
		for(var i=1;i<=5;i++){
			for(a=4;a>=i-1;a--){
				document.write('&nbsp');

			}
		
		for(var k=1;k<=2*i-1;k++){
				document.write('*');
			}
		    document.write('<br/>');
		}

	</script>
</head>
<body>
	
</body>
</html>